package cn.gson.oasys.controller;

import cn.gson.oasys.pojo.AoaDept;
import cn.gson.oasys.pojo.AoaPosition;
import cn.gson.oasys.service.AoaDeptService;
import cn.gson.oasys.service.AoaPositionService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by zhangyu on 2020/11/27.
 */
@Controller
public class AoapositionController {
    @Resource
    private AoaPositionService aoaPositionService;
    @Resource
    private AoaDeptService aoaDeptService;
    @RequestMapping("addAoaPosition")
    @ResponseBody
    //职位管理--添加--zy
    public Object addAoaDepts(AoaPosition aoaPosition){
        return aoaPositionService.addAoaPosition(aoaPosition);

    }
    @RequestMapping("updateAoaPosition")
    @ResponseBody
    //职位管理--修改--zy
    public Object updateAoaDepts(AoaPosition aoaPosition){
        return aoaPositionService.updateAoaPosition(aoaPosition);
    }
    //职位管理--查询
    public Object getAllAoaDepts(){
        return aoaPositionService.getAllAoaDept();

    }
    @RequestMapping("getALLAoaPosition")
    @ResponseBody
    //职位查询--zy
    public Object getALLAoaPosition(){
        return aoaPositionService.getALLAoaPosotion();


    }


}
